<%@ page contentType="text/html;charset=UTF-8" language="java" isErrorPage="true" %>
<!DOCTYPE html>
<html>
<head>
    <title>服务器错误 - 助农购物网站</title>
    <meta charset="UTF-8">
    <link rel="icon" type="image/x-icon" href="${pageContext.request.contextPath}/logo/favicon.ico">
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <div class="container mt-5">
        <div class="row justify-content-center">
            <div class="col-md-6">
                <div class="card">
                    <div class="card-header bg-danger text-white">
                        <h3>500 - 服务器错误</h3>
                    </div>
                    <div class="card-body">
                        <p>抱歉，服务器遇到了一个错误。</p>
                        <% if (exception != null) { %>
                            <div class="alert alert-danger">
                                <strong>错误信息：</strong><br>
                                <%= exception.getMessage() %>
                            </div>
                        <% } %>
                        <a href="${pageContext.request.contextPath}/" class="btn btn-primary">返回首页</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>






